<!DOCTYPE>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<html>
<head>
    <meta charset="utf-8">
    <title>工作</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" type="text/css" href="/common/css/public.css">
    <link rel="stylesheet" type="text/css" href="/common/css/style.css">
</head>
<body>
    <input type="hidden" id="openId" th:value="${openId}">
    <input type="hidden" id="userData" th:value="${data}">
   <!--banner start-->
   <div class="banner">
       <p>安全生产一体化管理信息系统</p>
   </div>
   <!--banner end-->
   <div class="home_bod">
        <!--工作分类start-->
       <div class="index_list">
           <div class="title_list">工作台</div>
           <ul>
               <li>
                   <a href="#" id="Danger">
                       <span class="index_one"><img src="\common\images\icon_one.png" /></span>
                       <font>危险作业</font>
                   </a>
               </li>
               <li>
                   <a href="#" id="Hidden">
                       <span class="index_two"><img src="\common\images/icon_two.png" /></span>
                       <font>隐患排查</font>
                   </a>
               </li>
               <!--<li>-->
                   <!--<a href="#" id="Unbind">-->
                       <!--<span class="index_two"><img src="\common\images/icon_two.png" /></span>-->
                       <!--<font>解绑</font>-->
                   <!--</a>-->
               <!--</li>-->
               <div class="clear_both"></div>
           </ul>
       </div>
       <!--工作分类end-->
   </div>
</body>
<script src="/common/js/jquery.js"></script>
<script src="/common/js/common.js"></script>
<script>
    var userData = $("#userData").val();
    var openId = $("#openId").val();
    if(userData != "" && userData != null){
        localStorage.setItem("userInfo",userData);
    }
    if(openId != "" && openId != null){
        localStorage.setItem("openId",openId);
    }
</script>
<script>

    //危险作业
    $("#Danger").click(function () {
        location.href = "/dangerous/index/?openId="+$.userOperate.openId();
    });

    //隐患处理
    $("#Hidden").click(function () {
        location.href = "/hidden/home?openId="+$.userOperate.openId();
    });

//    $(function () {
//        $("#Unbind").click(function(){
//            var data = {
//                openId:$.userOperate.openId(),
//                name:"王永兴",
//                id:"0002",
//            };
//            console.log(data);
//            $.get("/user/unbind",data,function (obj) {
//                if(obj.statusCode == 0){
//                    location.href = "bind.html";
//                }else{
//                    alert(obj.statusMsg);
//                }
//            });
//        })
//    })
</script>
</html>
